home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / base-files.preinst < prev    next >
Text File  |  2009-10-19  |  546b  |  22 lines

  1. #!/bin/sh
  2. set -e
  3. if dpkg --compare-versions "$2" lt-nl "2.1.6"; then
  4.   if [ -d /floppy ]; then
  5.     touch /etc/base-files.create-floppy
  6.   fi
  7.   if [ -d /cdrom ]; then
  8.     touch /etc/base-files.create-cdrom
  9.   fi
  10.   if [ -d /initrd ]; then
  11.     touch /etc/base-files.create-initrd
  12.   fi
  13. fi
  14. if dpkg --compare-versions "$2" lt-nl "2.1.16"; then
  15.   if [ -L /var/spool/mail ]; then
  16.     find /var/spool/mail -printf "%l\n" > /etc/base-files.mailsymlink
  17.   fi
  18. fi
  19. if dpkg --compare-versions "$2" lt-nl "2.2.6"; then
  20.   echo "squeeze/sid" > /etc/debian_version
  21. fi
  22.